package com.zuipin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zuipin.entity.product.CatgroyPropVal;
import com.zuipin.util.Pagination;

/**
 * @date 2017-8-11 13:53:51
 * @author zhuangjiajian
 * 分类属性值
 */
@Mapper
public interface CategroyPropValMapper {
	
	/**
	 * 有选择字段的插入一条记录
	 * @param record
	 * @return
	 */
	int insertSelective(@Param(value = "record") CatgroyPropVal record);
	
	/**
	 * 更新
	 * @param record
	 * @return
	 */
	int updateByPrimaryKeySelective(@Param(value = "record") CatgroyPropVal record);
	
	/**
	 * 有选择性的条件进行筛选
	 * @param record
	 * @return
	 */
	List<CatgroyPropVal> selectBySelective(@Param(value = "record") CatgroyPropVal record);
	
	/**
	 * 通过分类Id 属性Id查询 通用的分类属性值
	 * @param record
	 * @return
	 */
	List<CatgroyPropVal> selectByCatIdAndPropId(@Param(value = "catId") Long catId, @Param(value = "propId") Long propId, @Param(value = "page") Pagination page);
	
}
